package com.ss.android.wenda.answer.list;

import com.ss.android.common.callback.SSCallback;
import com.ss.android.wenda.model.Answer;
import java.util.Iterator;

final class l implements SSCallback {
    private final k a;

    l(k arg1) {
        this.a = arg1;

    }

    public final Object onCallback(Object[] args) {
        Object v0;
        String v1 = args[0].toString();
        int v2 = ((Integer) args[1]).intValue();
        Iterator v3 = k.a(this.a).b.iterator();
        do {
            if(v3.hasNext()) {
                v0 = v3.next();
                if(!android.support.design.a.isTextEquals(v1, ((Answer)v0).getAnswerId())) {
                    continue;
                }

                if(v2 == 1) {
                    ((Answer)v0).diggAnswer();
                } else {
                    ((Answer)v0).buryAnswer();
                }
            }

           break;
        }
        while(true);
        Answer.notifyAnswerChanged(v1);
        return null;
    }
}

